package functional;

import java.util.function.Consumer;

/**
 * @author lyx
 * @Date 2021/6/26 11:59
 * 消费型接口
 * void没有return
 * 适合做业务
 */
public class ConsumerTest {
    public static void main(String[] args) {
        Consumer<String > consumer = (str)->{
            System.out.println(str);
        };
        consumer.accept("com.www");
    }
}
